package com.ncloud.crm.service;

import com.alibaba.fastjson.JSONObject;
import com.ncloud.crm.entity.BsNode;
import com.ncloud.crm.entity.order.OrderNode;

import java.util.List;

/**
 * Created by shiqiang on 2017/4/17.
 */
public interface BsNodeService {
    BsNode getNodeInfoByPk(Long nodeInstId);

	int insertNode(BsNode node);

	int updateNode(BsNode node);

	BsNode getNodeInfoByNodeId(Long nodeId);

	JSONObject getNodeDetailInfo(Long nodeId);
	
	List<BsNode> getNodesByCust(Long custId);
	
	List<OrderNode> getBsNodesByOrder(Long orderId);

	BsNode getBsNodeInfoByNodeId(Long nodeId);

	JSONObject getBsONodeDetailInfo(OrderNode orderNode);
	
	JSONObject getBsNodeDetailInfo(OrderNode orderNode);

	JSONObject getNodeMapInfoByCode(String nodeCode,Long custId);

}